package com.barneyx.mshinfoplatform.service.admin.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.barneyx.mshinfoplatform.entity.admin.AreaAdminUserMapEntity;
import com.barneyx.mshinfoplatform.mapper.admin.IAreaAdminUserMapEntityMapper;
import com.barneyx.mshinfoplatform.service.admin.IAreaAdminUserMapEntityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;

@Service
public class AreaAdminUserMapEntityServiceImpl extends ServiceImpl<IAreaAdminUserMapEntityMapper, AreaAdminUserMapEntity> implements IAreaAdminUserMapEntityService {
    @Resource
    private IAreaAdminUserMapEntityMapper adminMapper;

    @Override
    public void deleteAdminAreaMapByAdminUserId(Serializable adminUserId) {
        adminMapper.deleteAdminAreaMapByAdminUserId(adminUserId);
    }

    @Override
    public void deleteAdminAreaMapByAdminUserIdAndAreaId(Serializable adminUserId, Serializable areaId) {
        adminMapper.deleteAdminAreaMapByAdminUserIdAndAreaId(adminUserId, areaId);
    }
}
